export const mapState = (state) => {
    return {
        user: state.user
    }
}
export const mapDispatch = (dispatch) => {
    return {
        addName: (name) => {
            dispatch({
                type: 'ADD_NAME',
                payload: name
            })
        },
        addAge: (age) => {
            dispatch({
                type: 'ADD_AGE',
                payload: age
            })
        }
    }
}
/*export default {
    mapState,
    mapDispatch
}*/